package com.tianxinweb.utils;

/**
 * Created by cboy on 2018/8/7.
 */
public class CommonUtil {

    public static Boolean validatePhone(String phone){
        if(phone==null || "".equals(phone.trim())){
            return false;
        }
        String regex = "^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\\d{8}$";
        if(phone.matches(regex)){
            return true;
        }
        return false;
    }
}
